/**
 * 
 */

function show_home ()
{
	hideAllForms();
	hideAllButtons();
	showItem ("#button_new");
	showItem ("#form_home");
}

function show_event ()
{
	hideAllForms();
	hideAllButtons();
	showItem ("#button_home");
	showItem ("#form_event");
}

function main ()
{
	global_main ();
	$("#event_date").datepicker();
	$("#button_home").button({ icons: {primary:'ui-icon-home'}}).click (show_home);
	$("#button_new").button({ icons: {primary:'ui-icon-calendar'}}).click (show_event);
	show_home ();
}